﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example08.aspx.cs" Inherits="Chapter14.Example08" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 14-8 使用 pattern 属性</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
</head>
<body>
    <form action="Result.aspx">
        <p>
            <label for="name">Name:</label>
            <input type="text" id="name" name="name" pattern="^.* .*$" />
        </p>
        <p>
            <label for="password">Password:</label>
            <input type="password" placeholder="Min 6 characters" size="6" id="password" name="password"/>
        </p>
        <input type="submit" value="Submit" />
    </form>
</body>
</html>
